package com.ruoyi.business.controller;


import cn.dev33.satoken.annotation.SaCheckPermission;
import com.ruoyi.business.domain.dto.admin.user.TbUserBabyPageQueryDTO;
import com.ruoyi.business.domain.vo.TbUserBabyPageVO;
import com.ruoyi.business.service.koc.ITbUserBabyService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 用户宝宝Controller
 *
 * @author ruoyi
 * @date 2025-09-25
 */
@Validated
@Api(value = "用户宝宝控制器", tags = {"用户宝宝管理"})
@RequiredArgsConstructor
@RestController
@RequestMapping("/business/user/baby")
public class TbUserBabyController extends BaseController {

    @Resource
    private ITbUserBabyService tbUserBabyService;


    /**
     * 查询用户宝宝列表
     */
    @ApiOperation("查询用户宝宝列表")
    @SaCheckPermission("business:userBaby:list")
    @GetMapping("/list")
    public TableDataInfo<TbUserBabyPageVO> list(TbUserBabyPageQueryDTO dto, PageQuery pageQuery) {
        return tbUserBabyService.queryPageList(dto, pageQuery);
    }


}
